Characterization of the Szekeres inhomogeneous cosmologies as algebraically special spacetimes