Criterion of the boundedness of singular integrals on spaces of homogeneous type