Architects, designers and urban planners are borrowing from natural phenomena as diverse as termite mounds and resilient grapefruits to design smart, sustainable cities