Detection of HCN, HCO+, and HNC in the Mrk 231 molecular outflow