Alternating Nanolayers of Dielectric MgF2 and Metallic Ag as Hyperbolic Metamaterials: Probing Surface States and Optical Topological Phase Transition and Implications for Sensing Applications