Influence of surface and interface roughness on X-ray and extreme ultraviolet reflectance: A comparative numerical study