Singapore gives jail time to writer critical of death penalty