A first cross-border natural gas pipeline linking the Czech Republic and Poland has been opened by the countries prime ministers.