Fundamentals of the theory of melting of simple substances with consideration of their defects