how is light both a particle and a wave?