Control of Energy Density inside a Disordered Medium by Coupling to Open or Closed Channels.