The energy dependence of 18O(π+, π−)18Ne(gs)