Gelfand-Tsetlin bases for representations of finite W-algebras and shifted Yangians