First principle theory for cavity solitons in semiconductor microresonators