Generalized Coating of Sensors for Selectivity