US trade deficit widens in May, but narrows with China