Similar Items: Analytic Tableaux for Simple Type Theory and its First-Order Fragment