Artificial intelligence algorithm developed to assess metastatic potential in skin cancers