A cartoonist whose work inspired an internet campaign to draw images of the Prophet Muhammad apologises for her role in the row.