Design of observers for systems with rational output function