An Energy Method for Analyzing Magnetoelastic Buckling and Bending of Ferromagnetic Plates in Static Magnetic Fields