Determination of the chemical composition of distorted InGaN/GaN heterostructures from x-ray diffraction data