Analysis of risk factors for the outcome of primary retinal detachment surgery in phakic and pseudophakic eyes.