Design and analysis of all-optical switches based on fiber parametric devices