Excitons and Trions Modified by Interaction with a Two‐Dimensional Electron Gas