Dense network of sensors applied to earthquake early warning in smart cities