Attosecond interferometry with self-amplified spontaneous emission of a free-electron laser