An adsorption model of the heterogeneous nucleation of solidification