Long-distance fiber-optic propagation of deterministically-shaped single photons