On the optimisation of bound electron concentration in a semiconductor quantum well