Dimensioning of fins with general nonlinear cooling laws