Microstructure and magnetism in amorphous rare-earth–transition-metal thin films. I. Microstructure | Synapse