Adaptive covariance estimation of non-stationary processes and its application to infer dynamic connectivity from