A Stress Criterion for the β-Sn Transformation in Silicon under Indentation and Uniaxial Compression