Correlation between frequency and location on the wafer for terahertz quantum-cascade lasers