Numerical application of quadratic extremum principles in dynamics of large deformation rigid--plastic beam structures