Endophthalmitis: diagnosis and management