QCD analysis of leading-neutron production at HERA: Determination of neutron fracture functions