Spanish banks set to agree long-awaited merger