On Shephard's duality theorem