Heat transfer and flow resistance in the turbulent pipe flow of a fluid with near-critical state parameters