31P nuclear magnetic resonance, optical and thermal spectra in MP3 (M = Ir, Co, Rh, Ni) compounds by DFT