Design Of Electromagnetic And Electromechanical Locks