Derivation of the Hamiltonian for applied uniaxial stress: application to paramagnetic corundum-type crystals