IDB, Morocco sign loan agreement to fund rail project