A Global Method for Relaxation in W 1,p and in SBV p