Elastic-strain mechanisms for the influence of temperature, magnetic field, and pressure on the resistive and magnetic properties of magnetic semiconductors