Nicotinamide ameliorates mitochondria-related neuronal apoptosis and cognitive impairment via the NAD+/SIRT3 pathway