Low-temperature synthesis of tin dioxide hollow nanospheres and their potential applications in dye-sensitized solar cells and photoelectrochemical type self-powered ultraviolet photodetectors