Sri Lankan president appoints fellow hardliner as PM