Critical behavior in Nd2Pt2In studied using the magnetocaloric effect: Comparison with the conventional method