KL shares end firmer, lifted by higher oil prices, better trade data