Thin film thickness determination using X-ray reflectivity and Savitzky-Golay algorithm