New technique pinpoints nanoscale ‘hot spots’ in electronics to improve their longevity