Rutherford backscattering spectroscopy of rough films: Theoretical considerations