Retinal ganglion cell and axonal loss in optic neuritis: risk factors and visual functions