Square pays up for Afterpay but price is justified, analysts say