Electromechanical resonance in magnetoelectric layered structures