Heterogeneities in supercooled liquids: a density-functional study.