Oil prices post worst weekly loss in two years