The inverse problem in electroencephalography using the bidomain model of electrical activity