SMODICE: Versatile Offline Imitation Learning via State Occupancy Matching