Phonon interaction in optical transitions via the deep O donor in GaP