Wetting and adhesion of Si on Si3N4 and BN substrates