Optical Devices Based on the Attenuated Total Reflection