Observability analysis: a new topological algorithm