The structure and magnetic properties of amorphous magnetic thin films