Measurement of the energy distribution of a gallium liquid metal ion source