Checkerboard to stripe charge ordering transition in TbBaFe2O5