Connection between static electromagnetoelasticity and anisotropic elasticity and its applications