A modified Newmark/Newton–Raphson method with automatic differentiation for general nonlinear dynamics analysis | Synapse