Finite temperature phonon spectra in perovskites from atomistic simulations