Margarida of Savoy, Vicereine of Portugal