Comparison of temperate cereals and grain legumes in a Mediterranean environment