Shape-dependent catalytic activity of palladium nanoparticles embedded in SiO2 and TiO2