Direct photons: a nonequilibrium signal of the expanding quark-gluon plasma