Yielding in amorphous and semi-crystalline polymers: the compensation law