Relaxation and dynamics of the (001) surfaces of KZnF3and KMnF3