Development and performance tests of NSTAR, a new type of compact neutron detector