Information space of sensor networks: Lagrangian, energy-momentum tensor, and applications