The science and technology of generating and controlling photons, particularly in the visible and near infrared light spectrum