Adaptive model selection and assessment for exponential family models