Three-dimensional MHD flow and heat transfer in a channel with internal obstacle