Square posts upbeat profits while also announcing $29 billion deal for Afterpay