Biot-Savart-like law in electrostatics