Upper limits on the rates of binary neutron star and neutron-star--black-hole mergers from Advanced LIGO's first observing run