Generalized Cahn-Hilliard equations for multicomponent alloys