Bouncing and cyclic universes from brane models