Dr Manmohan Singh had an ambitious vision of what a liberal India could be and a fine sense of what was politically possible