Patterson-UTI Energy beats Q2 estimates with $1.23B revenue on drilling rebound