Use of smart meters for frequency and voltage control