Optical testing techniques for new semiconductor processes and new materials