Two young university students in Indonesia's Aceh province have been publicly caned for having gay sex.