On magnetoelectric coupling at equilibrium in continua with microstructure