Optimal output feedback control for systems with inaccessible state variables