Fréchet Derivatives For Curved Interfaces In the Ray Approximation