Angular distributions of reflected and refracted relativistic electron beams crossing a thin planar target at a small angle to its surface