Separation, Flow Characterisation, And Optogenetic Control Of Motile Bacteria