Machine learning approach for mapping the stable orbits around planets