Investigations into the chemical structure based selectivity of the microfabricated nitrogen-phosphorus detector