Recurrent segmentation meets block models in temporal networks