Bouncing cosmologies in Palatini f(R) gravity