Metabolic pathway alignment between species using a comprehensive and flexible similarity measure