Monolithically integrated solid-state terahertz transceivers