Self-tuned quantum dot gain in photonic crystal lasers