KMS states for self-similar actions