Super-resolution imaging for sub-IR frequencies based on total internal reflection