A Norwegian woman in Dubai who reported to police an alleged rape in March has been sentenced to 16 months in jail for having extramarital sex.