Safety analysis and technical design for machines and plants