Convergent finite element discretizations of the density gradient equation for quantum semiconductors