Physical–chemical characterization of a GEM side-on 10B-based thermal neutron detector and analysis of its neutron diffraction performances