Enhanced terahertz emission by coherent optical absorption in ultrathin semiconductor films on metals