A study on magnetic properties and structure of SmCo5 thin films on Ni–W underlayers