Phase aberration correction for focused ultrasound transmission by refraction compensation