Reconstruction of Functional Connectivity from Multielectrode Recordings and Calcium Imaging