Construction of diluted magnetic semiconductor to endow nonmagnetic semiconductor with spin-regulated photocatalytic performance