Automatic Tortuosity Estimation of Nerve Fibers and Retinal Vessels in Ophthalmic Images