Semantic Density: Uncertainty Quantification for Large Language Models through Confidence Measurement in Semantic Space