Growth induced magnetic anisotropy in crystalline and amorphous thin films