A Myanmar court has sentenced a doctor to 21 months in jail after convicting him of insulting Buddhist monks in connection with a debate about a proposal to teach sex education in schools.