Magnetostriction and thermal expansion of Er2Fe14B and its hydride