Add NIF function enif_phash2

Expose the erlang:phash2/1 call to NIFs. This allows NIFs to generate a
hash value for arbitrary terms.