Influence of heat transfer on MHD flow in a pipe with expanding or contracting permeable wall