Integrating safety and BIM: automated construction hazard identification and prevention