A parametric study on the formation of extended star clusters and ultra-compact dwarf galaxies uri icon