Advanced Analytical Tools Based on Optical Spectroscopy with Applications in the Biosciences and Petrochemistry