Partial state and input observability recovering by additional sensor implementation: a graph-theoretic approach