Investigations of the magnetic properties of the Yb6Mn23 intermetallic compound