Running RCWA simulations from the design environment