Capture and release of carriers in InGaAs/GaAs quantum dots