Combining Rietveld and reflectivity for thin film analysis