European stock markets close Thursday with gains