A Software Tool for Economic Optimization of Industrial Safety Measures