Effect of nonlinear elasticity on loading diagrams of rock specimens