An Immersed Boundary Method on Unstructured Cartesian Meshes for Incompressible Flows with Heat Transfer