Determination of transient atomic structure of laser-excited materials from time-resolved diffraction data