A new finite element approach to the normal mode analysis in magnetohydrodynamics