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