Generation of mitochondrial reactive oxygen species is controlled by ATPase inhibitory factor 1 and regulates cognition