Bugfix states_elec_calc_projections
Description
Fix a problem with the routine states_elec_calc_projections that was assuming that st and gs_st was having the same number of states, which is not the case in general.
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.