High harmonic generation in gas phase and condensed matter