'Automated dermatologist' detects skin cancer with expert accuracy