A quantum ring terahertz detector with resonant tunnel barriers