Matlab functions for sleep scoring of EGI data