Film thickness measurement and defect inspection using optical coherence tomography