Ferromagnetism in armchair graphene nanoribbon heterostructures