A program and library for calculating geomagnetic field changes caused by earthquake