Energy-resolved spin filtering effect and thermoelectric effect in topological-insulator junctions with anisotropic chiral edge states