Trex posts strong earnings for Q2