Palin resigns as Alaska governor