UNDI: An open-source library to simulate muon-nuclear interactions in solids