Text this: An accurate algorithm of numerical integration for computing seismic responses of inelastic structures