Diagnosis and treatment of skin conditions