Ab initio studies of structural features not easily amenable to experiment: Part 39. Conformational analysis of glycine and alanine