Electromagnetic theory of consciousness