move Φinv and logΦinv to specialfuns.jl