Process control in electrical systems via quality by design