Therapy resistance and emergence of immune-related adverse effects in melanoma patients treated with immunotherapy