Novel methods of terahertz generation with semiconductor microcavities and beam steering