Optimal Design Of A Convection-Allowing Ensemble From A Model Error Perspective