Safety of machinery — General principles for design — Risk assessment and risk reduction