Integration of Active and Passive Compliance Control for Safe Human-Robot Coexistence