A neutron-leakage spectrum model for on-the-fly rehomogenization of nodal cross sections