THz Detection with Field-Effect Transistors: The Role of Plasma Waves and of Thermoelectric Contributions