Complexity theory in arithmetic dynamics