Optimal Excess-of-Loss Reinsurance for Stochastic Factor Risk Models