Barcelona forward Zlatan Ibrahimovic has completed his move to AC Milan on an initial season-long loan.