Mercedes have studied how Ferrari and Red Bull's dominance of F1 ended in the past to ensure they come back stronger after their poor 2022 campaign.