Time-and energy-resolved effects in the boron-10 based Multi-Grid and helium-3 based thermal neutron detectors