Boundedness criterion for multilinear oscillatory integrals with rough kernels