What did the religious importance of city gods wax and wan with