Difference between $state.go and $location.path in Angular.js