Karim Ansarifard agrees to Persepolis switch