Quantitative assessment of patch edge effects and its ecological implications