Sri Lankan shares end lower on consumer staples drag; economy contracts in Q2