European stock markets close with gains