Replica allows real-time testing of city’s infrastructure in the face of emergencies – and in future could be used in cities worldwide