X-ray studies of magnetic phase transitions in the intermetallic compounds RMn2Ge2 (R=La, Sm, Gd, Nd, Tb, and Y)