Shape derivatives of boundary integral operators in electromagnetic scattering. Part II : Application to scattering by a homogeneous dielectric obstacle