Magnetic properties and magnetocaloric effect in the rare earth-rich phases RE4PtMg (RE = Ho and Er). (July 2015)