European markets close lower, US gains after mixed opening