Real-Time Hardware Architecture For Characterising Functional Brain Connectivity From Mobile Electroencephalogram