pki: Add a helper function parse traffic selectors from CIDR subnets or ranges