An equation of state contribution for dipolar and quadrupolar square-well fluids