Thai king ends uncertainty, issues election decree