Using machine learning to discover stiff and tough microstructures