Optimal Observability and Sensor Theory