German far-right extremist planned mass attack on migrants, authorities say