Determination of the spatial distribution of abnormal EEG and MEG from current dipole in inhomogeneous volume conductor