Kinetic control of nanocrack formation in a palladium thin film on an elastomeric substrate for hydrogen gas sensing in air