Parameter estimation for hysteretic systems