The Misallocation of Pay and Productivity in the Public Sector: Evidence from the Labor Market for Teachers