Rigid band shifts in two-dimensional semiconductors through environmental screening