Axions from cooling compact stars: Pair-breaking processes