Orbital dependent interaction of quantum well states for catalytic water splitting