Dynamic Risk Assessment for Human-Robot Collaboration Using a Heuristics-based Approach