Boundary element formulation for dynamic analysis of inelastic structures