optical diagnostics