Bacterial metapopulations in nanofabricated landscapes