The world's longest and deepest rail tunnel is to be officially opened in Switzerland, after almost two decades of construction work.