Vertical stresses due to linearly distributed pressures over polygonal domains