Existence of self-similar solutions for the quasi-geostrophic equation