Sophia of Saxe-Weissenfels, Margravine of Brandenburg-Bayreuth