Beam patterns of terahertz quantum cascade lasers with subwavelength cavity dimensions