Convert IP ranges to their CIDR block equivalents