The calculation of ab initio molecular geometries: efficient optimization by natural internal coordinates and empirical correction by offset forces