Einstein's resolution of the photoelectric effect problem suggests that light consists of particles (photons). But how can this be reconciled with the understanding of light as an electromagnetic wave?