Analytic Tableaux for Simple Type Theory and its First-Order Fragment (Logical Methods in Computer Science, 2010)