Affinity-based biosensors for pathogenic bacteria detection