the magna carta was a document that did what