Rotational field distribution and power loss calculation in square sample designed for magnetic tests