The effect of metal ions on photocatalytic performance based on an isostructural framework.