System and method for adjusting the intensity of sensory stimulation during sleep based on sleep spindles