Optimization of parameters in the Menzerath–Altmann law