Preparation of tin oxide gels with versatile pore structures