Keep your brain sharp by finding your sleep 'sweet spot,' study says