A realistic coalescence model for deuteron production