BMO to buy back 25 million shares after asset-sale charge