Accept inet:ip_address() in net_adm:names/1 and simplify its code