Optimal Mean Reversion Trading with Transaction Costs and Stop-Loss Exit