Asymptotic normalization coefficients and neutron halo of the excited states in 12B and 13C