Sophia of Saxe-Weissenfels, Margravine o Brandenburg-Bayreuth