Sensex\, Nifty ends marginally lower over weak global cues