Conformation energies and electronic structure of phenethylamine and amphetamine