Wharton joins Trident for 2027 Formula 2 season