Model for optical pattern and cavity soliton formation in a microresonator with self-assembled semiconductor quantum dots