Safety of machinery — Safety-related parts of control systems — Part 1: General principles for design