An input observer-based stiffness estimation approach for flexible robot joints