Interplay between optical gain and photoinduced absorption in CdSe nanocrystals