Simple method for the complete optical analysis of very thick and weakly absorbing films