Magnetocaloric effect and critical exponent analysis around magnetic phase transition in NdCo2 compound