Synthesis of a Ni2P/Ni12P5 bi-phase nanocomposite for the efficient catalytic reduction of 4-nitrophenol based on the unique n-n heterojunction effects.