Optimum bucking of sawlog stems taking the customer's needs into account