Magnetomechanical coupling and ferromagnetic resonance in magnetic nanoparticles