In situ interface engineering for probing the limit of quantum dot photovoltaic devices