A Hierarchical Framework for Modeling Speed and Accuracy on Test Items