Exchange and magnetostrictive effects in rare earth superlattices