A lattice calculation of the Isgur-Wise function