Helix–coil transition in heterogeneous chains. II. DNA model