Maximizing the mean subtree order