Thermal expansion of orthorhombic and tetragonal phases of the highTc superconductors RE1Ba2Cu3Oy (RE=Y, Gd, Dy)