The control of microstructural features of thin films for magnetic recording