Beneficial effects of endogenous and exogenous melatonin on neural reconstruction and functional recovery in an animal model of spinal cord injury