Influence of post-growth rapid thermal annealing on the transport and lasing characteristics of terahertz quantum-cascade lasers