HST Observations of Galactic Globular Cluster Cores. I. NGC~6362 and NGC~6934