Control of electronic band profiles through depletion layer engineering in core–shell nanocrystals