Micro-structures modulate bacterial cell viability and attachment