Automating Gmax measurement in triaxial tests