Sun Pharma Q3 profit beats Street, to wind down JV with Merck