getDharmaResiduals function

Creates a DHARMa object