Economic hysteresis effects and hitting time densities for CIR diffusions