Thermal design and performance of the balloon-borne large aperture submillimeter telescope for polarimetry BLASTPol