Deep learning-based histopathological image analysis for automated detection and staging of melanoma