Interfacial reactions and counterion effects in the secondary ion mass spectra of perrhenate salts