Railways to form working group with Germany for rail safety