Thermal radiation from photonic crystals: a direct calculation.