Emission from a two-dimensional photonic crystal: enhanced extraction of light and lasing action