Effects of grain boundary on the sources of size effects