Effects of attachment preferences on coevolution of opinions and networks