Magnetic properties of Y2Fe14B and Nd2Fe14B single crystals