Mask4D: End-to-End Mask-Based 4D Panoptic Segmentation for LiDAR Sequences