Coherent terahertz emission from coupled quantum wells with exciton effects