Multimodal Adaptive Inference for Document Image Classification with Anytime Early Exiting