Friedrich, Brandenburg-Bayreuth, Markgraf