Counting spanning trees in self-similar networks by evaluating determinants