Ecopetrol buys stake in pipeline for US$417.8 million