Robust Neural Posterior Estimation and Statistical Model Criticism