Controlling Photoluminescence and Photocatalysis Activities in Lead-Free Cs2PtxSn1-xCl6 Perovskites via Ion Substitution.