Scattering of nucleons by 12C and the structures of 13N and 13C