added warning if both n_photons and max_extra_noise are set
(#401)