Eakin resigns from Pa. Supreme Court amid email criticism