Borel and stokes nonperturbative phenomena in topological string theory and c = 1 matrix models