Production mechanism of ϱ0 and f mesons in πN→π+π−N reactions