Open magnetic flux tubes in the corona and the transport of solar energetic particles