Ex-Costa Rican President Resigns From Post