Electric-field control of magnetism in graphene quantum dots: Ab initio calculations