The extra-religious functions of madaris : implications for community planning in Pakistan