J/ψ and ψ′ total cross sections and formation times from data for charmonium suppression in pA collisions