Amarinder to take oath as CM on Thursday