Surface tensions and anchoring transitions of nematic liquid crystals on gradually oxidized substrates