Nonperturbative Casimir effect and monopoles: compact Abelian gauge theory in two spatial dimensions