City played out an entertaining 1-1 draw at the London Stadium to earn a replay against West Ham United in the Emirates FA Cup.