Exploring HNC and HCN line emission as probes of the protoplanetary disk temperature