Making Sense of the EEG: From Basic Principles to Clinical Applications