System and method for determining timing of sensory stimulation delivered to a subject during a sleep session