Sex Difference in EEG Functional Connectivity during Sleep Stages and Resting Wake State Based on Weighted Phase Lag