Text this: A quantitative criterion for determining the order of magnetic phase transitions using the magnetocaloric effect