Calculation of the out-of-plane bending coordinates of tetraatomic molecules by the G-matrix method