How Kashmir became Muslim