How Nepal’s democracy, and ties with India, were threatened by an ambitious monarch