Electric control of magnetism in a multiferroic metal–organic framework