structure and energy diagram