Electromagnetoelastic equations for ferroelectrics based on a micromorphic dielectric model