Nonsmooth maps and the fast-slow dynamics of sleep-wake regulation : Part I