Sales, profits rise at Trex