Rail upgrade completed to fit new trains on Blue Mountains Line