Application of clustering global optimization to thin film design problems.