Method for the preparation of a titanium dioxide having photocatalytic activity by irradiation with visible light