First principles study on phonon dispersion, mechanical and thermodynamic properties of ThP