Robust polarization gradient cooling of trapped ions