Effects of electron confinement on thermionic emission current in a modulation doped heterostructure