n-Flat and n-FP-injective modules