Theory of spin-phonon coupling in multiferroic manganese perovskites R MnO 3