Sharp bounds for the number of regions of maxout networks and vertices of Minkowski sums