Thermally stable encapsulated intermetallic and bimetallic nanoparticles for heterogeneous catalysis