Total energies of structural defects in glassy Se