Simulation of X-ray Laue patterns