The chemistry of bioluminescence: an analysis of chemical functionalities.