Detection of six massive contact binaries with tertiary component candidates in the Small Magellanic Cloud