Spin-dependent electrical and thermal transport in magnetic tunnel junctions