Reflection and refraction of surface acoustic waves by a periodic domain structure