The genetic and epigenetic basis of distinct melanoma types