On distributed wavefront reconstruction for large-scale adaptive optics systems