Thermal expansion study of magnetic phase transitions in Kondo-lattice systems