Simulation of X-ray double-crystal rocking curves at multiple and inhomogeneous heteroepitaxial layers