Wavefunctions projection of a single state onto a discrete spctrum of states (KS or Wannier)