Prologis to buy warehouse rival Liberty in $12.6 billion deal