Study of the thermal neutron detector ZnS(Ag)/LiF response using digital pulse processing