Bridging Earth and Space: A Survey on HAPS for Non-Terrestrial Networks