Risk assessment and prevention of occupational accidents