A judge has refused bail to a man charged with causing the deaths of two teenagers in a crash in Co Donegal in 2017.