Biot-Savart integration for bars and arcs