state observer and state measurement