Representations of the Heisenberg algebra and moduli spaces of framed sheaves