Potential functions and conformations in cycloalkanes