European stocks notch gains after choppy week for markets