Relationship between microstructure and magnetic domain structure of Nd--Fe--B melt-spun ribbon magnets