Shape-Dependent Catalytic Activity of Palladium Nanoparticles Embedded in SiO2 and TiO2