Observations of upstream ions, solar wind ions and electromagnetic waves in the Earth's foreshock