how to switch from mechanical engineering to software engineering