Effect of delay on the synchronization of weakly coupled neurons via gap junctions