An efficient method for determining the chemical rank of three-way fluorescence data arrays