Modelling inelastic buckling of reinforcing bars under earthquake loading