Chemical rank estimation for excitation—emission matrices using a morphological approach