A versatile method for molecular structure determinations from ground state rotational constants