Comparison of ab initio, semiempirical, and molecular mechanics calculations for the conformational analysis of ring systems