Photonic crystal nanocavity lasers and modulators