The beam emission spectroscopy diagnostic on the DIII-D tokamak