Apple, Samsung trade barbs as $2 bln patent trial opens