Single-electron charging of the quantum wells and dots