Factors Affecting Visits to the Emergency Department for Urgent and Nonurgent Ocular Conditions.