Calculation of kinetic curves for the helix–coil transition of polypeptides