Risk assessment of machinery system with respect to safety and cyber-security