Cooperativity of Cu and Pd active sites in CuPd aerogels enhances nitrate electroreduction to ammonia.