The relationship between congressional spending and tenure with an application to term limits