Magnetic properties and the magnetocaloric effect in the intermetallic compound GdFeSi