Text this: Homoclinic bifurcation of a rate-weakening patch in a viscoelastic medium and effect of strength contrast