Spain's chief prosecutor quits after being found guilty of leaking confidential information