A Galerkin finite element method for an optimal shape design semiconductor problem