where does the amazon river start and end