Phase field study of grain boundary effects on spinodal decomposition