Constructing semisimple subalgebras of semisimple Lie algebras