Hysteresis modeling for smart materials and observer design for 2DOF robots