Ex-president slams Bolivia over joining Lima bloc