Photonic crystals and optical mode engineering for thin film photovoltaics.