Federated Learning for Smart Grid: A Survey on Applications and Potential Vulnerabilities