Quantification of errors arising in ellipsometry