Thai activist sentenced over royal insult