The role of electronic interferences in determining the appearance of STM images: application to the S(2 × 2)/Re(0001) system