Theoretical analysis of dynamic chemical imaging with lasers using high-order harmonic generation