Temporal Topic Analysis with Endogenous and Exogenous Processes