Partial filling of a quantum dot intermediate band for solar cells