Effect of heat transfer on the peristaltic flow of an electrically conducting fluid in a porous space