Generating topological order from a two-dimensional cluster state using a duality mapping