Endowments expand mosque network and improve governance