Photoinduced anchoring transitions in a nematic doped with azo dyes