Structural distortion in RPt2Sn2 compounds (R≡rare earths)