Photonic crystal heterostructures: Waveguiding phenomena and methods of solution in an envelope function picture