OFFICIAL: Milan sign Rebic on permanent deal