Gold gains for the session, ends lower for the week