Spin-dependent optical properties in strained silicon and germanium