Engineering quantum-dot lasers