European stocks close Thursday with gains