Semiconductor photonic crystals and devices at optical wavelengths