Shift of close-packed basal planes as an order parameter of transitions between antiferromagnetic phases in solid oxygen: II. Temperature/pressure dependence of sound velocities and lattice parameters