DEVICE FOR THz GENERATION AND/OR DETECTION AND METHODS FOR MANUFACTURING THE SAME