P2PAM: a Framework for Peer-to-peer Architectural Modeling based on PeerSim