Input complexity and out-of-distribution detection with likelihood-based generative models