General Demographic Foundation Models for Enhancing Predictive Performance Across Diseases and Populations