Monolithic dual-mode distributed feedback semiconductor laser for tunable continuous-wave terahertz generation.