Text this: Optimization the design of fixed and group sequential three-arm non-inferiority trials with dichotomous endpoints of risk difference and odds ratio