A lattice Boltzmann algorithm for fluid–solid conjugate heat transfer