Controllable synthesis of Ag@TiO2 heterostructures with enhanced photocatalytic activities under UV and visible excitation