A top-down approach for the prediction of hardness and toughness of hierarchical materials