Understanding the influence of three-dimensional sidewall roughness on observed line-edge roughness in scanning electron microscopy images