Faithful Inversion of Generative Models for Effective Amortized Inference