Two-sided approximations of inverses, square roots and Cholesky factors