Demography, insecurity, and religion