The role of strain-induced structural changes in the metal–insulator transition in epitaxial SmNiO3 films