Effect of terminal functional group size on ferroelectric and antiferroelectric properties of liquid crystals