Friedrich II., Hessen-Darmstadt, Landgraf