Measurements of 12C(π+, πN)11C and 19F(π+, πN)18F cross sections near the , resonance