Effects of confinement, surface-induced orientations and strain on dynamical behaviors of bacteria in thin liquid crystalline films.