The application of multiwavelength spectrophotometry to the analysis of rare earths