Three-photon double ionization of Ar studied by photoelectron spectroscopy using an extreme ultraviolet free-electron laser: manifestation of resonance states of an intermediate Ar+ ion