Multiplex pathogen detection based on spatially addressable microarrays of barcoded resins