A Survey of Methods for Safe Human-Robot Interaction