Spin filtering in four-terminal wire networks with spin–orbit coupling