Theory of stagnation-point heat transfer in a partially ionized diatomic gas