SU ( N ) quantum spin models: a variational wavefunction study