European markets close week with gains