Understanding the antimicrobial mechanism of TiO2-based nanocomposite films in a pathogenic bacterium.