Distributed filtering and control of complex networks and systems