Analytical approach to the multi-state lasing phenomenon in quantum dot lasers