Energies of molecular structures in 12 C, 16 O, 20 Ne, 24 Mg, and 32 S