Anisotropic polaron localization and spontaneous symmetry breaking: Comparison of cation-site acceptors in GaN and ZnO