The nucleation of solidification in liquid droplets embedded in a solid matrix