Investigation of confined electron gas in a quantum well structure with photovoltaic application