Martic, Kontaveit into WTA quarter-finals