Exploration of magnetism in armchair graphene nanoribbons with radical groups