Hydrogen-induced semimetal-semiconductor transition of two-dimensional ErSi2 detected by electron energy loss spectroscopy