Sophie Cunningham agrees to two-year extension with Mercury