A risk-based method for optimizing process plants layout