A-trails of embedded graphs and twisted duals