Locomotion of bacteria in liquid flow and the boundary layer effect on bacterial attachment.