Riddled basins in complex physical and biological systems