cosi2: Efficient simulator of exact and approximate coalescent with selection