Climate change and green transitions in an agent-based integrated assessment model