Text this: An extended variational method for the resistive wall mode in toroidal plasma confinement devices.