Sleep stability and transitions in patients with idiopathic REM sleep behavior disorder and patients with Parkinson's disease