Elastic energy stored in a crystal induced by screw dislocations: From discrete to continuous