GM earnings hit by European losses