Controlling the temperature by indirect heat exchange with heat exchange elements outside the bed of solid particles