State will sell surplus electricity, buy at lower rates