Magnetostriction of SmMn2Ge2 and GdMn2Ge2 intermetallic compounds