Production of magnetic monopoles and monopolium in peripheral collisions