Subleading contributions to the chiral three-nucleon force I: long-range terms