Mode-I crack in a magnetoelectroelastic layer sandwiched by two elastic half-planes