Teva Pharma quarterly profit and revenue beat expectations