Using correlations between cosmic microwave background lensing and large-scale structure to measure primordial non-Gaussianity