Mercedes and Ferrari have been granted engine upgrades this season by the FIA after Red Bull was deemed as Formula 1's best engine.