Anisotropic vibrations in crystalline and amorphous InP