Thermalization of hot electrons in quantum wells