Computing Bayes D- and E- Optimal Designs for a Two-Way Model