KLCI closes higher, lifted by gains in Petronas-related counters