Observability of linear in the state systems: a functional approach