factors that contribute to insomnia