Molecular conformation and electronic structure of compounds related to amides and thioamides: A study by abinitio and semiempirical molecular orbital methods