A Characterization of Semiprojectivity for Subhomogeneous