Optimal design of two-stage-studies using the Mean Score method