Energy-resolved neutron imaging with glass gas electron multiplier and dynamic time-over-threshold method