Bioluminescence and chemiluminescence