An energy principle for hydromagnetic stability problems | Synapse