Calculation of RHEED intensities from stepped surfaces