A new density functional for fractionally occupied orbital systems with application to ionization and transition energies | Synapse