When Online Algorithms Influence the Environment: A Dynamical Systems Analysis of the Unintended Consequences