Preparation and photocatalytic properties of titanium dioxide modified with gold or silver nanoparticles