Electrical detection of optically induced charge storage in self-assembled InAs quantum dots