Development of nanoparticle-based optical sensors for pathogenic bacterial detection