Comparing large-scale computational approaches to epidemic modeling: agent based versus structured metapopulation models