Imaging of locally rough surfaces from intensity-only far-field or near-field data