Hyperon–nucleon interaction in chiral effective field theory at next-to-next-to-leading order