Brain Foundation Models: A Survey on Advancements in Neural Signal Processing and Brain Discovery