Effects of intermittent coupling on synchronization