US department store operator Macy's has lifted its full-year earnings forecast after its second-quarter net income surged on the back of strong revenue growth.