Tory contender promises “open and generous” offer to EU nationals if he becomes prime minister.