Magnetocaloric effect. Part 1: An introduction to various aspects of theory and practice