The thermal evolution and dynamics of pyroclasts and pyroclastic density currents