Preparation of catalysts and photocatalysts used for similar processes