Square-shape magnetocaloric effect in Mn3GaC