Enhanced photocatalytic efficiency and biosensing in plasmonic nanostructures for the detection of bacteria in various analytes