Fix the computation of the Fermi energy
Description
Fix the computation of the Fermi energy for fixed occupations, when the highest occupied k-points was not the Gamma point.
Closes #1286 (closed)
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.