Ex-San Diego mayor pleads guilty to all three charges