Thermochemistry of nanoparticles on a substrate: Zinc oxide on amorphous silica