France and Germany have joined calls for a tougher EU migration policy following a series of far-right election wins.