How Pakistan became Muslim