Evidence of cosmic-ray acceleration up to sub-PeV energies in the supernova remnant IC 443