Basic principles of optimal design of electromagnetic devices and multi-objective optimization