Anisotropic thermal expansion and evaluation of uniaxial pressure dependence of superconducting and magnetic transitions in ErNi2B2C