A calculation of the effective interaction in 18O including self-consistency effects