Interface density profile from x-ray reflectivity