Optimal cross-direction basis weight and moisture profile control on paper machines