The influence of the Jahn–Teller effect on phonons in LaMnO3