What is the primary purpose of Electroencephalograms (EEGs) in the context of epilepsy?
A) To cure epilepsy
B) To diagnose and monitor the electrical activity of the brain
C) To administer medications for epilepsy
D) To perform surgical interventions for epilepsy