Analysis of core-excited n = 3 configurations in S VI, Cl VII, Ar VIII and Ti XII