Simulation of the lattice statics and dynamics of the perovskites KMnF3 and KZnF3