A simple method for obtaining and analysing the absorption spectra of microscopic specimens