How is restless leg syndrome detected during a sleep study?