Amplifier with switchable transformer