High-Q Cavities in Photonic Crystal Slab Heterostructures Formed by Variation in the Refractive Index