A study of the formation of dark-solitons in semiconductor microcavities