Polarization beam-splitters and optical switches based on space-variant computer-generated subwavelength quasi-periodic structures