Foundation models for generalist medical artificial intelligence