Monopoles and topological field theory