The paper has been rewritten to improve its clarity, as requested by the reviewers.