Magnetoelasticity and structure of Er/Y superlattices