Quantifying stimulus-response specificity to probe the functional state of macrophages