Observability and Controllability of General Linear Systems