Gravar-mail: Generic coarse-grained model for protein folding and aggregation