HCN-to-HNC intensity ratio: A new chemical thermometer for the molecular ISM