Google parent company’s second-quarter earnings outpace expectations