AstraZeneca Q2 profit beats expectations, shares rise 2%