Photographic chemistry in black-and-white and color photography