Computation of correlation-induced atomic displacements and structural transformations in paramagnetic KCuF 3 and LaMnO 3