Natural convection in a shallow cavity with differentially heated end walls. Part 1. Asymptotic theory