Crystal nucleation induced by magnetic ordering in undercooled melts