Observability analysis in state estimation: a unified numerical approach