Nanofabricated structures and microfluidic devices for bacteria