Effect of Delta potential on the pion-/pion+ ratio in heavy-ion collisions at intermediate energies