Optimal location of sensors for filtering for distributed systems