Tenet posts $38M profit for Q2 as contract labor costs start to moderate