An analytical model for void-free priming of microcavities