Mode-Observability Conditions for Linear and Nonlinear Systems