Interference effects in X-ray radiation from relativistic electrons moving at a small angle to an atomic plane