Motility of bacteria in microfluidic structures