Two staff members at a specialist hospital unit who were filmed mistreating vulnerable patients have lost challenges against their convictions at the Court of Appeal.