Closed formulae for transformation of the cartesian coordinate system into a system of geodetic coordinates