php check if IP is in given network range