The effect of substance abuse on child custody determinations