Charge state hysteresis in semiconductor quantum dots