Text this: Electrical circuit model of spatiotemporal trade dynamics: Foundations and derivation of the gravity model