Federated Self-Supervised Contrastive Learning and Masked Autoencoder for Dermatological Disease Diagnosis